<?php

class Dwoo_Plugin_include_css extends Dwoo_Plugin { 
	public function process($file, $media = null) {
		$execContainer = $this->dwoo->readVarInto('container', $this->dwoo->getData());
		if($media !== null) {
			$media = sprintf('media="%s"', $media);
		}
		$html = sprintf('<link type="text/css" href="%s" %s rel="stylesheet" />', $file, $media);
		$execContainer->appendAttribute('additionalHeaders', $html, 'org.welcomescreen');
		return '';
	}
}

?>